from django.urls import path, include, re_path
from .views import *



urlpatterns = [
    path('register',RegisterView.as_view()),
    path('getcode',GetCodeView.as_view()),
    path('login', LoginView.as_view()),
    path('add_stu', Add_Student.as_view()),
    path('check_stu',Check_Student.as_view()),
    path('check_user_id',Check_User_Id),
    path('check_user_name',Check_User_Name),
    path('check_stus',Check_Students.as_view(),name='check_stus'),
    path('delete_stu', Delete_Student.as_view()),
    re_path('delete_stu_id/(?P<id>\d+)',Delete_User_Id.as_view(),name='delete_stu_id'),
    re_path(r'delete_name/', Delete_User_Name.as_view(), name='delete_name'),
]